﻿using Alos.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Alos.IRepository
{
    public interface IReResourceRepository : IBaseRepository<ReResource>
    {
        /// <summary>
        /// 根据资源编号加载资源
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        IEnumerable<dynamic> GetReResourceById(string ids);
        /// <summary>
        /// 根据备课步骤编号加载备课资源
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        IEnumerable<dynamic> GetReResourceByStepId(string ids);
        /// <summary>
        /// 根据父资源编号加载子资源
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        IEnumerable<dynamic> GetReResourceByFatherID(int id);
        /// <summary>
        /// 根据资源编号获取资源
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ReResource GetReResourceByReResourceId(int id);
    }
}
